<!DOCTYPE html>
<html>
    <head>
        <meta charset='utf-8' />
        <title>CSS样式</title>
        <meta name='refresh' content='3;url=http://www.baidu.com' />
        <style>
           div.c1{
             width:200px;height:200px;
             border:1px solid red;
             margin:50px 50px 50px 150px;   /*外边距*/
             display:inline-block;
           }
           /*上下外边距取最大值, 左右外边距相加*/
           span.c2{
                margin:50px;    /*行内元素 上下外边距无效*/
                border:1px solid green;
           }
           div.c3{
                width:600px;
                border:5px solid pink;
                margin:0 auto;
               
           }
        </style>
    </head>
    <body>
        <h2>CSS样式实例:盒子模型margin</h2>
        <div class='c3'>
            <div class='c1'></div>
            <div class='c1'></div>
        </div>
        <hr/>
        <span class='c2'>xxoo</span><br />
        <span class='c2'>aabb</span>
        
        
        <br /><br /><br /><br /><br /><br />
    </body>
</html>